<?php


namespace api\web\model;


use think\Model;
use think\model\relation\BelongsTo;

class NavModel extends Model
{
    protected $name = 'nav1';
    public function child()
    {
        return $this->hasMany(NavModel::class,'parent_id','id');
    }
}